<template>
  <div>这是vue根组件 - {{ count }}</div>
  <button @click="count++">count++</button>
  <Child />
</template>

<script>
import Child from "com/Child";

export default {
  data() {
    return {
      count: 10,
    };
  },
  components: {
    Child,
  },
  mounted() {
    fetch(
      "/api/mmdb/movie/v3/list/hot.json?ct=%E6%9D%AD%E5%B7%9E&ci=50&channelId=4"
    )
      .then((response) => response.json())
      .then((res) => {
        console.log(res);
      });
  },
};
</script>
